package com.shijue;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import javax.imageio.ImageIO;

/**
 * @author Zhang Zhe
 * @since 2020年02月04日 16:58:00
 */
public class ContestTest {
	public static void main(String[] args) {
		//File picture = new File("/Users/mengxinhan/Downloads/1.jpg");
		/*File picture = new File("/Users/mengxinhan/Documents/推荐作品投稿原图/纸千 (1).jpg");
		BufferedImage sourceImg = null;
		try {
			sourceImg = ImageIO.read(new FileInputStream(picture));
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println(sourceImg.getWidth()); // 源图宽度
		System.out.println(sourceImg.getHeight()); // 源图高度
		String a = "abc.jpg";
		System.out.println(a.substring(0,a.indexOf(".")));*/

		Node [] nodes = new Node[3];
		nodes[1] = new Node("a",null);
		System.out.println(nodes[1].name);
	}
}
class Node{

	public Node(String name, Node node) {
		this.name = name;
		this.node = node;
	}

	String name ;
	Node node = null ;
}